package com.frame.service.impl;

import com.frame.domain.Activiti;
import com.frame.domain.SysDictData;
import com.frame.domain.SysUser;
import com.frame.domain.SysUserLeaves;
import com.frame.service.ActivitiService;
import com.frame.mapper.ActivitiMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【sys_activiti】的数据库操作Service实现
* @createDate 2024-08-29 14:02:52
*/
@Service
public class ActivitiServiceImpl implements ActivitiService{

    @Autowired
    ActivitiMapper activitiMapper;
    @Override
    public void save(Activiti activiti) {
        activitiMapper.save(activiti);
    }

    @Override
    public Activiti getById(String businessKey) {
        return activitiMapper.getById(businessKey);
    }

    @Override
    public void updateById(Activiti byId) {
        activitiMapper.updateById(byId);
    }

    @Override
    public List<SysUser> getLeads() {
        return activitiMapper.getLeads();
    }

    @Override
    public List<SysUser> getManager() {
        return activitiMapper.getManager();
    }

    @Override
    public List<SysUser> getPresident() {
        return activitiMapper.getPresident();
    }

    @Override
    public Activiti selectActivitiById(Integer id) {
        return activitiMapper.selectActivitiById(id);
    }

    @Override
    public List<SysUserLeaves> myCompletion(String userName, String status) {
        return activitiMapper.myCompletion(userName,status);
    }

    @Override
    public List<SysDictData> getActivitiType() {
        return activitiMapper.getActivitiType();
    }

    @Override
    public void UpdateTaskId1(String taskId) {
        activitiMapper.UpdateTaskId1(taskId);

    }


}




